<?php $this->load->view('header', array('data' => $data));?>
<script type="text/javascript" src="/js/lib/jquery.flot.stack.js"></script>
<div id="center">
	<div id="left_box">
		<div class="module"><div class="text">带宽信息</div></div>
		<div class="sub_module">
		<ul class="sub_module">
		<?php foreach ($data['module'][$data['current']['module']]['sub_module'] as $v) { ?>
			<li <?php if ($v['ename'] == $data['current']['sub_module']) echo "class='current'"; ?> ><a href="<?php echo "/{$data['current']['module']}/{$v['ename']}";?>"><?php echo $v['cname'];?></a></li>
		<?php }?>
		</ul>
		</div>
		<div class="desc_box1 desc_box">
			<div class="title">带宽统计</div>
			<div class="content">您可以在这里实时查看您所加速的域名的带宽使用情况，个性化查询如业务类型和各运营商使用带宽的数据，您可以清楚的了解到当前的带宽情况，以及您所查询的时间段的峰值情况和下载量总计。</div>
		</div>
		<div class="desc_box2 desc_box">
			<div class="title">计费方式说明</div>
			<div class="content">当前的计费方式为95%值计费方式，即取查询时间段中，所有带宽数据点，按带宽大小低到高排序后，取95%个点所对应的值作为计费带宽。如一段时间内有N（N=100）个带宽数据点，将这些点从低到高排序，第N*95%（100x95%=95）个点对应的带宽大小为该计费带宽的值。</div>
		</div>
	</div>
	<div id="right_box">
		<form id="search" method="post">
		<table id="search_condition">
			<tr>
				<td>业务类型：</td>
				<td>
					<select id="service_id" name="service_id">
						<option value=0>选择业务...</option>
						<?php foreach ($data['service'] as $v) {?>
						<?php echo "<option value='{$v['id']}'>{$v['service']}</option>";?>
						<?php } ?>
					</select>
				</td>
				<td><!--运营商：--></td>
				<td>
				</td>
			</tr>
			<tr class="time">
				<td>常用时间:</td>
				<td colspan="3">
					<ul>
						<li><a href="javascript:void(0)" class="today">今天</a></li>
						<li><a href="javascript:void(0)" class="yesterday">昨天</a></li>
						<li><a href="javascript:void(0)" class="week">本周</a></li>
						<li><a href="javascript:void(0)" class="month">本月</a></li>
						<li><a href="javascript:void(0)" class="last_month">上月</a></li>
					</ul>
				</td>
			</tr>
			<tr>
				<td>起始时间：</td>
				<td><input name="start_date" id="start_date" type="text" value=""></td>
				<td>终止时间：</td>
				<td><input name="end_date" id="end_date" type="text" value=""></td>
			</tr>
			<tr>
				<td>计费单元:</td>
				<td colspan="3" class="unit">
				</td>
			</tr>
			<tr>
				<td colspan="4"><input type="submit" value="查询" /></td>
			</tr>
		</table>
		</form>
		<div id="placeholder" style="width:600px;height:300px;"></div> 
		<div id="tableholder" style="width:600px;height:500px;display:none;overflow:auto;">
			<table>
				<tr>
					<td>单元</td>
					<td>日期</td>
					<td>流量(M)</td>
					<td>峰值带宽(M)</td>
					<td>峰值时间</td>
				</tr>
			</table>
		</div>
	</div>
</div>
<?php $this->load->view('footer', array('data' => $data));?>
